package com.hzd.entity;

import ablaze.framework.constant.Constant;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Transient;

/**
 * 活动接力用户
 *
 * @author christ
 * @date 2015/10/20
 */
@Entity
public class RelayUser extends BaseEntity {

    @Id
    private String id;

    @Column(length = 32)
    private String nickName;

    private String fromOpenid;

    private String openid;

    @Column(length = 32)
    private String mobile;

    /**
     * 是否已分享
     */
    private String isShare = Constant.BOOLEAN.N;

    @Transient
    private String relayTime;

    public String getId() {
        return id;
    }

    public RelayUser setId(String id) {
        this.id = id;
        return this;
    }

    public String getNickName() {
        return nickName;
    }

    public RelayUser setNickName(String nickName) {
        this.nickName = nickName;
        return this;
    }

    public String getOpenid() {
        return openid;
    }

    public RelayUser setOpenid(String openid) {
        this.openid = openid;
        return this;
    }

    public String getFromOpenid() {
        return fromOpenid;
    }

    public RelayUser setFromOpenid(String fromOpenid) {
        this.fromOpenid = fromOpenid;
        return this;
    }

    public String getRelayTime() {
        return relayTime;
    }

    public RelayUser setRelayTime(String relayTime) {
        this.relayTime = relayTime;
        return this;
    }

    public String getIsShare() {
        return isShare;
    }

    public RelayUser setIsShare(String isShare) {
        this.isShare = isShare;
        return this;
    }

    public String getMobile() {
        return mobile;
    }

    public RelayUser setMobile(String mobile) {
        this.mobile = mobile;
        return this;
    }
}
